/**
	Copyright (c) 2010 ATTi 
	All rights reserved.
	Author: Michael Shu
	Date: 3/15/2010
*/

public without sharing class caseRoundRobinClass {
	private static Map<ID, ID> mAGQIdbyQueueId;
	
	public static Map<ID, ID> getmAGQIdbyQueueId(){
		if(mAGQIdbyQueueId == null){
			mAGQIdbyQueueId = new Map<ID, ID>();
		    for(Assignment_Group_Queues__c g : [select a.Assignment_Group_Name__c, a.Id, a.Name, a.QueueId__c  
		                                        from Assignment_Group_Queues__c a 
		                                        where a.Valid_Queue__c  =: true and a.Active__c =: 'true' and Assignment_Group_Name__r.Type__c = 'Cases']){
		        mAGQIdbyQueueId.put(g.QueueId__c, g.Assignment_Group_Name__c);      
		    }
		}
		return mAGQIdbyQueueId;
	} 
}